package com.zryc.shop.sms.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zryc.shop.sms.controller.FlashPromotionProductRelationController;
import com.zryc.shop.sms.entity.FlashPromotionProductRelation;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 商品限时购与商品关系表 服务类
 * </p>
 *
 * @author zhaozhao
 * @since 2024-01-18
 */
public interface IFlashPromotionProductRelationService extends IService<FlashPromotionProductRelation> {

    /**
     * 分页列表
     *
     * @param pageNum
     * @param pageSize
     * @param flashPromotionId
     * @param flashPromotionSessionId
     * @return
     */
    Page<FlashPromotionProductRelation> list(Integer pageNum, Integer pageSize, Long flashPromotionId, Long flashPromotionSessionId);

    /**
     * 修改秒杀商品信息
     *
     * @param id
     * @param relation
     * @return
     */
    Object updateProduct(Long id, FlashPromotionProductRelation relation);
}
